// 首页
import { serveAPI } from '@/api/serve'
Page({
    data: {
        user: ""
    },
    onShow (options) {
        console.log(options, 'options')
        this.getInfo()
        this.getTest()
    },
    getInfo () {
        console.log('执行了')
        let params = { "siteid": "ead756bfbe5843d98048756024dccdd5", "mobileId": "b77a3f9429344452a89f8d66a5db66b6", "clienttype": 2, "version": "2.0.3" }
        serveAPI.queryList('jmportalnzjk', 'channelfirst', params).then(res => {
            console.log(res, '获取数据')
        })
    },
    getTest () {
        let params = {
            rowGuid: 'c9a2b424-c893-42dc-b34a-bfb4830cc07b',
            taskType: '20'
        }
        serveAPI.showQuestion(params).then(res => {
            console.log(res, '获取数据')
        })
    }
});